﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("t_StocktakeResultRecord")]
    public partial class t_StocktakeResultRecord
    {
        public t_StocktakeResultRecord()
        {


        }
        /// <summary>
        /// Desc:盘点记录Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:订单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int OrderId { get; set; }

        /// <summary>
        /// Desc:订单编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OrderSN { get; set; }

        /// <summary>
        /// Desc:库房Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int WarehouseId { get; set; }

        /// <summary>
        /// Desc:库房
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AreaId { get; set; }

        /// <summary>
        /// Desc:库区
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:单据类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillTypeId { get; set; }

        /// <summary>
        /// Desc:单据类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BillTypeName { get; set; }

        /// <summary>
        /// Desc:仓位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CellId { get; set; }

        /// <summary>
        /// Desc:仓位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CellCode { get; set; }

        /// <summary>
        /// Desc:仓位深度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CellDepthIndex { get; set; }

        /// <summary>
        /// Desc:包装条码：如料箱条码。整垛盘点为空（不拆箱盘点），否则不允许为空
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PackageBarcode { get; set; }

        /// <summary>
        /// Desc:垛条码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PalletBarcode { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:物料条码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialBarcode { get; set; }

        /// <summary>
        /// Desc:扫描条码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ScanBarcode { get; set; }

        /// <summary>
        /// Desc:原始数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? OriginalQTY { get; set; }

        /// <summary>
        /// Desc:盘点后数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? CountQTY { get; set; }

        /// <summary>
        /// Desc:盘点单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? UnitId { get; set; }

        /// <summary>
        /// Desc:盘点单位：通常为物料的基本单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? UnitName { get; set; }

        /// <summary>
        /// Desc:是否已处理
        /// Default:
        /// Nullable:False
        /// </summary>           
        public short IsHandle { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:盘点结果状态:1-盘平;2-盘盈;3-盘亏;
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

    }
}
